package com.opc.Pojo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class CarStatus {
    private Long id; // 主键
    private Long carId; // 车序号（外键）
    private Long workingPositionId; //工位
//    private Long weldingGunId; //才知道是工位的哪一边
    private Long screwId; // 螺丝ID (外键)
    private Long screwTypeId; // 螺丝ID (外键)
    private Double torque; //当前扭力
    private String unit; // 扭力单位
    private AlarmLevel alarmLevel; // 报警等级
    private AlarmStatus alarmStatus; // 扭力状态
    private CheckStatus checkStatus; // 处理状态
    private Date createTime; // 报警时间
    private Date updateTime; // 处理时间
    private String employeeName;

    public enum AlarmLevel {
        danger, normal //risk,
    }

    public enum AlarmStatus {
        overTorque, underTorque, normal,
        twoThirdsAlert,
//        upperLimitAlert, lowerLimitAlert,
        continuingDecline,
        alertUpperLimit, alertLowerLimit
    }

    public enum CheckStatus {
        Checked, waitForCheck,noProcessingRequired
    }
}
